function res = TripBallence2(mevents, start, stop)

    startepoch = 99999999;
    for i = 1:length(mevents)
        
    end
    
    start = datenum(2011,5,0,0,0,0);
    stop  = datenum(2011,6,20,0,0,0);

    ndays = stop - start;
    ballence = zeros(ndays,2);


    for i = 1:ndays

        oballence = 0;
        if i > 1
            oballence = ballence(i-1,2);
        end

        day = start + i;

        dloss = 0;
        fprintf('dloss reset\n');
        for j = 1:length(mevents)
            estart = mevents{j}{2};
            estop  = estart + (mevents{j}{3} - 1);
            edens  = mevents{j}{1} / mevents{j}{3};
    %        fprintf('%f\t\t%f | %f\n', day, estart, estop);
            if day >= estart && day <= estop
                dloss = dloss + edens;
                fprintf('  dloss is now %f (from %i)\n', dloss,j);
            end
        end

        nballence = oballence + dloss;
        ballence(i,1) = day;
        ballence(i,2) = nballence;
    end


    res = ballence;
end


